|
FrameLib
2.0
DSP processing with frames of arbitrary timing and length
|
a convenience wrapper for dealing with a vector of objects owned by pointer. More...
#include <FrameLib_Types.h>
Public Member Functions | |
| void | add (T *object) |
a convenience wrapper for dealing with a vector of objects owned by pointer.
This minimal template class inherits from a std::vector of std::unique_ptr<T> objects. The owned list of objects is thus memory-managed as-per std::unique_ptr. For convenience the add() method allows a raw pointer to be added to the end of the vector (and thus ownership transferred) in a compact manner.
|
inline |
Add a pointer to the list of managed pointers, transferring ownership.
| object | the pointer to add to the owned list. |